Skip to content

Conversation

@apiraino
Copy link
Contributor

@apiraino apiraino commented Aug 13, 2025

This patch adds a new Zulip command:
@triagebot backport <channel> <action> <PR>

Example:

  • @triagebot backport stable accept 123456
  • @triagebot backport beta decline 654321

This can be used to post on GitHub a comment like this one when T-compiler accepts/decline to backport a patch that fixes a regression.

Limitations:

  • This command assumes that the PR is from rust-lang/rust, I am not aware of other git repos having this workflow. If we want, maybe in the future we can extend to other repos using our custom Zulip linkfiers
  • There is no check on the PR number (so if someone mistypes, the comment will go elsewhere 😅 )

Tested on a custom Zulip instance.

TODO:

  • update docs on the forge
  • Could be interesting a shorter variant of this command (f.e. backport accept or even accept) to be used from #t-compiler/backports (topics contain all necessary info to build the command parameters)

@apiraino apiraino changed the title Accept backports from zulip Accept/decline backports from zulip Aug 13, 2025
@apiraino apiraino changed the title Accept/decline backports from zulip Accept/decline T-compiler backports from zulip Aug 13, 2025
@apiraino apiraino force-pushed the accept-backports-from-zulip branch from a42cf9d to b265ac9 Compare August 13, 2025 10:58
@apiraino apiraino changed the title Accept/decline T-compiler backports from zulip Accept/decline T-compiler backports from Zulip Aug 13, 2025
@apiraino apiraino marked this pull request as ready for review August 13, 2025 11:17
@apiraino apiraino force-pushed the accept-backports-from-zulip branch from b265ac9 to 80d4110 Compare August 19, 2025 15:12
@apiraino
Copy link
Contributor Author

apiraino commented Sep 6, 2025

I guess this patch went under the radar because I didn't request a review

r? triagebot

Copy link
Member

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds pretty useful!

View changes since this review

@apiraino apiraino force-pushed the accept-backports-from-zulip branch 4 times, most recently from 05aa91f to 6d99fff Compare September 19, 2025 19:05
@apiraino apiraino force-pushed the accept-backports-from-zulip branch 4 times, most recently from f32c8db to f373c3c Compare September 19, 2025 19:23
@apiraino apiraino force-pushed the accept-backports-from-zulip branch 6 times, most recently from 52295ac to 93156bd Compare October 22, 2025 15:43
@apiraino
Copy link
Contributor Author

r? @Kobzol I think it's ready for another round of review (when you have time)

@apiraino apiraino requested a review from Kobzol October 22, 2025 15:46
@rust-lang rust-lang deleted a comment from rustbot Oct 22, 2025
Copy link
Member

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Left some nits, but otherwise I think that it's fine.

View changes since this review

@apiraino apiraino force-pushed the accept-backports-from-zulip branch from 943b9d1 to 62d8f88 Compare October 27, 2025 16:18
@apiraino apiraino requested a review from Kobzol October 27, 2025 16:21
Copy link
Member

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please just get rid of the merge commit by rebasing, otherwise LGTM :)

View changes since this review

@apiraino apiraino force-pushed the accept-backports-from-zulip branch 2 times, most recently from 24e3df8 to 4c3dd4e Compare October 28, 2025 10:29
Copy link
Member

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if triagebot reads triagebot commands from its own comments 🤔 I guess we'll see :)

View changes since this review

@apiraino
Copy link
Contributor Author

apiraino commented Oct 28, 2025

I wonder if triagebot reads triagebot commands from its own comments 🤔 I guess we'll see :)

Do you mean if on Zulip calling @triagebot in a comment would trigger a circular @triagebot invocation? I'm not sure about what you mean

This patch adds a new Zulip command:
`@triagebot backport <channel> <action> <PR>`

Example:
- `@triagebot backport stable accept 123456`
- `@triagebot backport beta decline 654321`

This can be used to post on GitHub a comment when T-compiler accepts/decline to backport a patch that fixes a regression.

Limitations:
- This command is only available in the `rust-lang/rust` repository
- There is no check on the PR number (in case of mistypes, the comment will go elsewhere)
@apiraino apiraino force-pushed the accept-backports-from-zulip branch from 4c3dd4e to 9ce791d Compare October 28, 2025 10:40
@Kobzol
Copy link
Member

Kobzol commented Oct 28, 2025

No, on GitHub. Right now the backport command sends a GitHub comment from triagebot with @rustbot label .... I wonder if triagebot will then read this comment and actually execute the @rustbot label command, even if the GH comment was created by triagebot itself (e.g. bors ignores its own comments).

@apiraino
Copy link
Contributor Author

apiraino commented Oct 28, 2025

ah ok! Yes it will trigger a reaction applying the labels (for GH after all it's a normal comment from a GH user).

Thanks for the review!

@apiraino apiraino added this pull request to the merge queue Oct 28, 2025
Merged via the queue into rust-lang:master with commit 1b5a63a Oct 28, 2025
3 checks passed
@apiraino apiraino deleted the accept-backports-from-zulip branch October 28, 2025 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants